-- GENERATED SPELL FOR [Sorrow Wing] --


function spell0_5928(pUnit, Event) --@Deadly Leech Poison,Drain--
pUnit:FullCastSpellOnTarget(3388,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_5928', 45000, 1)
end

function spell1_5928(pUnit, Event) --@Soul Rend,n/a--
pUnit:FullCastSpellOnTarget(3405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5928', 646, 1)
end

function Sorts_5928(pUnit, Event)
local choix_sorts_5928 = math.random(0, 1)
if choix_sorts_5928 == 0 then
pUnit:RegisterEvent('spell0_5928', 1, 1)
end
if choix_sorts_5928 == 1 then
pUnit:RegisterEvent('spell1_5928', 1, 1)
end
end

function mob5928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5928', math.random(1500, 3000), 1)
end

function mob5928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5928, 1, 'mob5928_Action')
RegisterUnitEvent(5928, 2, 'mob5928_Leave')
RegisterUnitEvent(5928, 3, 'mob5928_Kill')
RegisterUnitEvent(5928, 4, 'mob5928_Die')
